package com.xinghou.platform.service.main;

import com.xinghou.platform.model.main.VisitFrom;
import com.xinghou.platform.model.main.VisitTo;
import org.springframework.dao.DataAccessException;

/**
 * 
 * @author wxtdy
 *
 */
public interface VisitService {
	
	/**
	 * 保存主页访问记录
	 * @param visitFrom
	 * @param visitTo
	 * @throws DataAccessException
	 */
	public void saveVisit(VisitFrom visitFrom, VisitTo visitTo) throws DataAccessException;

	/**
	 * 更新主页访问时间
	 * @param visitFrom
	 * @param visitTo
	 * @throws DataAccessException
	 */
	public void updateVisit(VisitFrom visitFrom, VisitTo visitTo) throws DataAccessException;

}
